package site.anxuan.seckill.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 商品库存流水实体类
 *
 * @author 黯玄
 * @since v1.0
 */
@Data
@ToString
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class ItemStockLog {

    /**
     * 主键
     */
    private String id;

    /**
     * 订单商品 ID
     */
    private Integer itemId;

    /**
     * 订单数量
     */
    private Integer amount;

    /**
     * 流水状态
     */
    private Integer status;

    public interface State {
        Integer DEFAULT = 0;
        Integer SUCCESS = 1;
        Integer FAILURE = 2;
    }

}
